$(function(){
	var offalert="<div class='off-alert'></div>",
	    html = "<div class='mark'></div>"
	           +"<div class='off-alert'>"
				  +"<h3>新增老人离院<span id='close'>×</span></h3>"
				  +"<div class='sle'><label>部门</label><select><option>请选择</option></select><label>姓名</label><select><option>请选择</option></select><label>离院时间</label><input type='text' readonly='readonly' placeholder='2017-09-12'></select></div>"
				  +"<div class='col-xs-12'><div class='col-xs-4'>离院原因</div><div class='col-xs-8'><textarea></textarea></div></div>"
				  +"<div class='btns'><button>保存</button><button>取消</button></div>"
          +"</div>";
	   $("body").prepend($(html))
      $(".mark").css("height",$(document).height()+"px")    
   $(".mark").addClass('hidden')  
   $(".off-alert").addClass('hidden')
      $("#off-btn").click(function(){
           $('.mark').show()
           $('.off-alert').show()
           $(".off-alert").removeClass('hidden')
           $(".mark").removeClass('hidden')
       
     })
    $("#close").click(function(){
           $('.mark').hide()
           $('.off-alert').hide()
           $(".off-alert").addClass('hidden')
           $(".mark").addClass('hidden')
     })


})